package com.maikang.exammall.repository;

import com.maikang.exammall.entity.Examinee;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;


@Repository
public interface ExamineeRepository extends BaseRepository<Examinee, Long>, JpaSpecificationExecutor<Examinee> {
//    @Modifying
    void deleteByIdAndUserId(Long id, Long userId);

    Iterable<Examinee> findAllByUserId(Long userId);
}
